import java.util.Stack;
class MinStack {

    Stack<Integer> stack;
    Stack<Integer> minstack;

    public MinStack() {
        stack = new Stack<>();
        minstack = new Stack<>();

    }

    public void push(int val) {
        stack.push(val);
        if(minstack.empty()){
            minstack.push(val);
        }else{
            int top = stack.peek();
            if(top<=minstack.peek()){
                minstack.push(val);
            }
        }
    }

    public void pop() {
        int top = stack.pop();
        if(top == minstack.peek()){
            minstack.pop();
        }
    }

    public int top() {
        return stack.peek();
    }

    public int getMin() {
        return minstack.peek();
    }
}
public class Text {
    public static void main(String[] args) {
        int count=1;
        for (int i = 1; i < 10; i++) {
            count = (count+1)*2;
        }
        System.out.println(count);
    }
    public static void main2(String[] args) {
        for (int i=1;i<=10000;i++){
            int sum=0;
            for(int j=1;j<i;j++){
                if(i%j==0){
                    sum+=j;
                }
            }
            if(sum == i){
                System.out.print(i+" ");
            }
        }
    }
    public static boolean isValid(String s) {
        Stack<Character> stack = new Stack<>();
        for(int i=0;i<s.length();i++){
            char val = s.charAt(i);
            if(val=='(' || val == '{' ||val == '['){
                stack.push(val);
            }else{
                if(stack.empty()){
                    return false;
                }
                char top = stack.peek();
                if((top=='['&&val==']')||(top=='('&&val==')')||(top=='{'&&val=='}')){
                    stack.pop();
                }else{
                    return false;
                }
            }
        }
        return stack.empty();
    }
    public static void main1(String[] args) {
        MyStack myStack = new MyStack();
        myStack.push(1);
        myStack.push(2);
        myStack.push(3);
        myStack.push(4);
        System.out.println(myStack.pop());
        System.out.println(myStack.pop());
        System.out.println(myStack.pop());
        System.out.println(myStack.pop());

        System.out.println(myStack.peek());
    }
}
